<template>
  <div>
    <h2>孙</h2>
    <h3>{{ brand }}</h3>
    <h3>{{ y }}</h3>
    <button @click="updatePrice(100)">加100</button>
    <!-- <h2>{{ $props }}</h2> -->
  </div>
</template>
<!-- 12444124424 -->
<!-- 2343434343434343434343434343434343434343434 -->
<script setup>
import { ref, reactive, onMounted, useAttrs } from "vue"
defineProps(["a"])
const attrs = useAttrs()
const { brand, updatePrice } = inject("aa")
const y = inject("bb")
onMounted(() => {
  // console.log(attrs);
})
</script>

<style scoped></style>